export enum AstarNodeType {
    ROAD = 0,
    OBSTACLES = 1
}

export default class AStarNode {
    public x: number;
    public y: number;
    public f: number;
    public g: number;
    public h: number;
    public father: AStarNode;
    public type: AstarNodeType;

    constructor(x: number, y: number, type: AstarNodeType, father?: AStarNode) {
        this.x = x;
        this.y = y;
        this.type = type;
        this.father = father;
    }
}
